package dfbz.demo02;

public class compareThree {
    private int i;
    private int j;
    private int z;

    public compareThree(int i, int j, int z) {
        this.i = i;
        this.j = j;
        this.z = z;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getJ() {
        return j;
    }

    public void setJ(int j) {
        this.j = j;
    }

    public int getZ() {
        return z;
    }

    public void setZ(int z) {
        this.z = z;
    }
    public void comparetr(){
    int temp = this.i > this.j ? this.i : this.j;
    int max = temp > this.z ? temp : this.z;
    System.out.println("三个数最大值为： "+max);
    }

}
